<%@ page import="java.util.regex.Pattern"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/bigjo/js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="/bigjo/css/eboard.css">
<title>Insert title here</title>

<script type="text/javascript">

function chktitle(){
	var form = document.insert;
	if(!form.eb_title.value){
		alert('제목은 필수');
		return;
	}
	
	if(!form.eb_context.value){
		alert('내용도 필수');
		return;
	
	}else{
		document.insert.submit();
		document.getElementById("ebinsert").action = "/bigjo/eboardinsert.eboard";
	}
}

</script>

</head>
<body>
	<div id="eboardinsert" align="center">

		<form name="insert" action="/bigjo/eboardinsert.eboard" method="post">
			제목 : <input style="width: 650px; resize: none;" id="eb_title"name="eb_title"> <br>
			<textarea style="width: 700px; height: 300px; resize: none;" id="eb_context" name="eb_context"></textarea><br>
			<input type="button" name="ebinsert" id="ebinsert"	value="입력" onclick="chktitle()">
		    <a href="eboardmain.eboard"><input type="button" value="취소"></a>
		</form>

	</div>
</body>
</html>